<?php require 'header.php';?>
<div class="panel panel-primary">
	<div class="panel-heading">Danh sách sinh viên</div>
	<div class="panel-body">
	<div id="divDMHP">
	<div id="divKQHT">
<?php  $malop=""?>
<?php if (isset ( $_POST ['MaLop'] )) {
		$malop = $_POST ['MaLop'];
	}?>
<?php 
$sqllop = "select dbo_monhoc.MAMH , TENMH ,concat(dbo_monhoc.MAMH ,' - ' , TENMH , ' Nhom ' , MaNhom) As lophp , MaNhom from dbo_noidung,dbo_monhoc where  dbo_noidung.MAMH=dbo_monhoc.MAMH";
$stmt1 = $db->prepare ($sqllop );
$stmt1->execute();
?>

<div id="divGiaoVienNhapDiem">	
		<form action="<?php echo $_SERVER["PHP_SELF"]?>" method="post" class="form-horizontal">
		<div id="dslop">
		<div class="form-group">
		<label for="inputEmail3" class="col-sm-2 control-label">Chọn lớp: </label> 
		<div class="col-sm-6">
		<select class="form-control" name="MaNhomNhapDiem" id="MaNhomNhapDiem">
			<option>--chọn--</option>
		<?php while ($r=$stmt1->fetch()):?>
		<option value="<?php echo $r['MaNhom']; ?>"
				<?php if ($r['MaNhom']==$malop) echo "selected='selected'";?>><?php echo $r['lophp'];?> 
		</option>
		<?php endwhile;?>
		</select>
		
		</div>
			</div>
			</div>
			<hr />
			<div id="danhsachlopnhapdiem">
			
			</div>
			</form>
			</div>
	<div id="divthongke">
	<p></p></div>
	
	</div>
	</div>
	<?php require_once 'footer.php';?>
	
